home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d27
/
chgjobl.arc
/
README.TXT
< prev
Wrap
Text File
|
1991-12-04
|
2KB
|
54 lines
CHANGE JOB LOG OUTPUT QUEUE
by Bob Cozzi
It has long been a desire of mine to be able to change the
joblog output queue of a job, to an output queue other than
the default queue or the one that is specified on the
object description for the printer file QPJOBLOG.
The command CHGJOBLOG will accomplish this task.
Basically, the command works like this. First, you specify
the CHGJOBLOG either as the last command in your CL
programs, or as the last statement of a Routing Program.
If you place it into your Routing Program, you don't need
to add it to any other CL programs.
Then, specify the OUTQ name of the output queue that you
want your job log to go to. The output MUST exist.
The way CHGJOBLOG works is as follows:
The command CHGJOBLOG sends the output queue name to its
command processing program (CHGJOBLOG).
The command processing program (CHGJOBLOG) retrieves the
current job's job name, number and user. It then builds a
second command's command parameters. The second command is
called CHGJOBLOG2.
The command processing program (CHGJOBLOG) then submits the
command string 'CHGJOBLOG2 JOB(xxx.xxx.xxx) OUTQ(XXX.XXX)'
as a batch job to QCTL.
CHGJOBLOG2 will attempt to change the spool file attributes
of QPJOBLOG for the specified job. If it cannot change the
attributes, it will "go to sleep" for about 10 seconds, and
then try again. It will retry up to 3 times, then it gives
up.
If you use another controlling subsystem, (something other
than QCTL,) then you will have to modify CHGJOBLOG2.
Good Luck!
Bob Cozzi [ID0004]
(c) Copyright 1987 by Q38
This program, its source and its object may NOT be
reproduced or distributed in any form, without express
written permission from Q38.